Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NComboBox Class / FillFromEnum Method / FillFromEnum<TEnum>() Method


In This Topic
    FillFromEnum<TEnum>() Method
    In This Topic
    Fills the combo box with the options from the specified enum. Assigns the corresponding enum value to the Tag property of each combo box item.
    Syntax
    'Declaration
     
    
    Public Overloads Sub FillFromEnum(Of TEnum As {New, Struct})() 
    'Usage
     
    
    Dim instance As NComboBox
     
    instance.FillFromEnum(Of TEnum)()
    public void FillFromEnum<TEnum>()
    where TEnum: new(), struct

    Type Parameters

    TEnum
    Remarks
    The names of the enum options are localized. If you want them not to be localized use the FillFromEnum method overload and pass false for the localizeEnumValues parameter.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also